﻿// ****************************************************************
// Copyright 2012, Stephan Burguchev
// e-mail: me@sburg.net
// ****************************************************************
// *
using System.Windows;
using Updater.Wpf.ViewModels;

namespace Updater.Wpf.Controls
{
    /// <summary>
    ///     Interaction logic for UpdateDetailsControl.xaml
    /// </summary>
    public partial class UpdateDetailsControl : Window
    {
        public UpdateDetailsControl()
        {
            this.InitializeComponent();
        }

        private void OnDownloadAndInstallUpdateClick(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
            this.Close();
        }

        private void OnUpdateDetailsControlLoaded(object sender, RoutedEventArgs e)
        {
            this.ChangeLogBrowser.NavigateToString(((HtmlUpdateDetailsViewModel)this.DataContext).ChangeLogHtmlText);
        }
    }
}
